package com.platform.admin.feign;


import com.platform.admin.dto.DefalutDTO;
import com.platform.admin.feign.fallback.DefaultFeignApiFallBack;
import com.platform.common.entity.ApiResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import static com.platform.common.constant.ApiConstant.QCXYZT_BW_API;


/**
 * @Description: 机长看板相关接口
 * @author: yuanlai 3331f2423bb444f5a0fd4f626fa4f184
 * @CreateTime: 2022/9/29 14:44
 */
@FeignClient(value = QCXYZT_BW_API, fallback = DefaultFeignApiFallBack.class)
public interface DefaultFeignApi {

    @ApiOperation("停用设备通知")
    @PostMapping("/api/mes/bw/supplier/mesBmsSupplierDevice/stopTheDeviceNoticeToSchedule")
    ApiResponse<Boolean> stopTheDeviceNoticeToSchedule(@RequestHeader("secretKey") String secretKey, @RequestBody DefalutDTO dto);

    @ApiOperation("待派单去生产")
    @PostMapping("/api/mes/bw/toThird/mesBwGroupOrder/initBoardWatchData")
    ApiResponse<Boolean> initBoardWatchData(@RequestHeader("secretKey") String secretKey, @RequestBody DefalutDTO dto);
}
